import json
from datetime import time, datetime


import jsonpath
import requests


import time


# # 打印时间戳
# print(time.time())      # 打印自从1970年1月1日午夜（历元）经过了多长时间，以秒为单位
# # 打印本地时间
# print(time.localtime(time.time()))      # 打印本地时间
# # 打印格式化时间
from keywords.interkeys import Inter

date=time.strftime('%Y-%m-%d',time.localtime(time.time()))
H=time.strftime('%H',time.localtime(time.time()))
M=time.strftime('%M',time.localtime(time.time()))
S=time.strftime('%S',time.localtime(time.time()))
m=int(M)+1
start_h=int(H)-8
end_h=int(H)+8
print(start_h,":",m,":",S)
inter=Inter()
# params={"name":"柯棣","password":"d636db2fa5ce5895863e3e98b1b8d7c7","login_type":"backend","returnUrl":"http://test15.yishou.com/newos/fund/money-adjust","is_pc":"1"}
# inter.post("http://erp5.yishou.com:8088/erp/Admin/login",data=params)
print("test%s%s%s%s"%(date,H,M,S))

params = '{"seckill_id":"","seckill_name":"test%s%s%s%s","seckill_start_time":"%sT0%d:%d:00.000Z",' \
         '"seckill_end_time":"2022-06-07T%s:00:00","page":1,"pageSize":10,"goods_info_tag_img":"",' \
         '"is_show_countdown":0,"is_show_activity_price":0,"price_title":"","notice_tag_img":"",' \
         '"seckill_show_name":"test","department":["102","111","141"]}'%(date,H,M,S,date,start_h,m,end_h)
print(params)

# good_no=['1224600082', '1224600081', '1224600080', '1224600079', '1224500013']
# for i in good_no:
#     print(i)